package org.jie.guider.java.mysql;

/**
 * @author LiJie
 */
public class JdbcInfo {

    private static JdbcInfo jdbcInfo;

    static {
        jdbcInfo = new JdbcInfo();
        jdbcInfo.setDriverClassName(PropUtil.getValue("driverClassName"));
        jdbcInfo.setUrl(PropUtil.getValue("url"));
        jdbcInfo.setUser(PropUtil.getValue("user"));
        jdbcInfo.setPassword(PropUtil.getValue("password"));
    }

    private String driverClassName;
    private String url;
    private String user;
    private String password;

    public static JdbcInfo get() {
        return jdbcInfo;
    }

    public String getDriverClassName() {
        return driverClassName;
    }

    public void setDriverClassName(String driverClassName) {
        this.driverClassName = driverClassName;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getUser() {
        return user;
    }

    public void setUser(String user) {
        this.user = user;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }
}
